package com.link2room.aeriabots.entity;

import com.link2room.common.entity.BaseEntity;

import javax.persistence.*;

/**
 * Created by Nakisa on 2016/10/17.
 */
@Entity
@Table(name = "sys_no")
public class SysNo extends BaseEntity{
    private String apiServiceNo;
    private Long l2RNo;
    private Long msNo;
    private Long wxQrcodeId;

    @Basic
    @Column(name = "APIServiceNo", nullable = true, length = 3)
    public String getApiServiceNo() {
        return apiServiceNo;
    }

    public void setApiServiceNo(String apiServiceNo) {
        this.apiServiceNo = apiServiceNo;
    }

    @Basic
    @Column(name = "L2RNo", nullable = true)
    public Long getL2RNo() {
        return l2RNo;
    }

    public void setL2RNo(Long l2RNo) {
        this.l2RNo = l2RNo;
    }

    @Basic
    @Column(name = "MSNo", nullable = true)
    public Long getMsNo() {
        return msNo;
    }

    public void setMsNo(Long msNo) {
        this.msNo = msNo;
    }

    @Basic
    @Column(name = "wx_qrcode_id", nullable = true)
    public Long getWxQrcodeId() {
        return wxQrcodeId;
    }

    public void setWxQrcodeId(Long wxQrcodeId) {
        this.wxQrcodeId = wxQrcodeId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SysNo sysNo = (SysNo) o;

        if (apiServiceNo != null ? !apiServiceNo.equals(sysNo.apiServiceNo) : sysNo.apiServiceNo != null) return false;
        if (l2RNo != null ? !l2RNo.equals(sysNo.l2RNo) : sysNo.l2RNo != null) return false;
        if (msNo != null ? !msNo.equals(sysNo.msNo) : sysNo.msNo != null) return false;
        if (wxQrcodeId != null ? !wxQrcodeId.equals(sysNo.wxQrcodeId) : sysNo.wxQrcodeId != null) return false;

        return true;
    }

}
